package ravenmocker.html;

import java.io.StringWriter;

import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.Velocity;
import org.apache.velocity.exception.MethodInvocationException;
import org.apache.velocity.exception.ParseErrorException;
import org.apache.velocity.exception.ResourceNotFoundException;

public class RavenVelocity {
	
	public RavenVelocity () throws Exception {
		
		Velocity.init();
			
		VelocityContext context = new VelocityContext();
		context.put("name", new String("Velocity"));
		Template template = null;
		
		try {
			template = Velocity.getTemplate("html.vm");
		}
		catch (ResourceNotFoundException rnfe) {}
		catch (ParseErrorException pee) {}
		catch (MethodInvocationException mie) {}
		catch (Exception e){}
		
		StringWriter sw = new StringWriter();
		template.merge(context, sw);
	}
	
	
}
